From 4f007990dc44d55eeed66b444958af4af101845f Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 3 Oct 2006 13:50:23 +0000 Subject: [PATCH] Curt makes fixes for NG Topo 4. --- tpo.c | 39 +++++++++++++++++++++++++++------------ vecs.c | 2 +- xmldoc/formats/tpo3.xml | 4 ++-- 3 files changed, 30 insertions(+), 15 deletions(-) diff --git a/tpo.c b/tpo.c index 0e3c1a22a..505d821d1 100644 --- a/tpo.c +++ b/tpo.c @@ -558,7 +558,7 @@ int tpo_find_block(unsigned int block_desired) // Read record type block_type = tpo_read_32(); -//printf("Block: %x\n", block_type); +//printf("Block: %08x\tat offset: %08x\n", block_type, block_offset); // Read offset to next record block_offset = tpo_read_32(); @@ -691,7 +691,7 @@ void tpo_process_tracks(void) sprintf(track_name, "TRK %d", ii+1); } track_temp->rte_name = track_name; -//printf("Track Name: %s\n", track_name); +//printf("\nTrack Name: %s ", track_name); // Route description // track_temp->rte_desc = NULL; @@ -730,37 +730,52 @@ void tpo_process_tracks(void) lat = le_read32(buf+jj); jj+=4; - // Peek to see if next is a lonscale - if(jj+3This module reads .TPO files created by National Geographic Topo! version -3.x. It will read tracks, routes, waypoints, map notes, symbols, and text -notes. The latter three are converted to waypoints. +3.x and 4.x. It will read tracks, routes, waypoints, map notes, symbols, and +text notes. The latter three are converted to waypoints. Contributed by Curt Mills. -- 2.30.2